package pl.koziolekweb.prusakolep.model;

import java.io.Serializable;
/**
 * 
 * @author bartlomiejk
 *
 *
 * $Id: Bug.java 109 2009-02-17 11:20:55Z bjkuczynski $
 */
public class Bug implements Serializable {
	private static final long serialVersionUID = 7027531044457182074L;
	private Long id;
	private String file;
	private Long line;
	private String description;
	private BugStatus status;

	public Bug(Long id, String file, Long line, String description) {
		this.id = id;
		this.file = file;
		this.line = line;
		this.description = description;
		this.status = BugStatus.NEW;
	}

	public void fix() {
		this.status = BugStatus.FIXED;
	}

	public void reject() {
		this.status = BugStatus.NOTBUG;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getId() {
		return id;
	}

	public String getFile() {
		return file;
	}

	public Long getLine() {
		return line;
	}

	public String getDescription() {
		return description;
	}

	public BugStatus getStatus() {
		return status;
	}

}
